import request from "@/utils/request";

// 查询质量标准列表
export function listQcqualitystd(query) {
  return request({
    url: "/mes/qc/qcqualitystd/list",
    method: "get",
    params: query,
  });
}

//同步质量标准数据
// export function getJdyQcqualitystd(query) {
//   return request({
//     url: "/mes/k3cloud/api/qualitystd/syncqualitystd",
//     method: "get",
//     params: query,
//   });
// }

export function getJdyQcqualitystd(query) {
  return request({
    url: "/sync/k3cloud/api/doSyncQualitystd/doSyncQualitystd",
    method: "get",
    params: query,
  });
}

// 查询质量标准详细
export function getQcqualitystd(id) {
  return request({
    url: "/mes/qc/qcqualitystd/" + id,
    method: "get",
  });
}

// 新增质量标准
export function addQcqualitystd(data) {
  return request({
    url: "/mes/qc/qcqualitystd",
    method: "post",
    data: data,
  });
}

// 修改质量标准
export function updateQcqualitystd(data) {
  return request({
    url: "/mes/qc/qcqualitystd",
    method: "put",
    data: data,
  });
}

// 删除质量标准
export function delQcqualitystd(id) {
  return request({
    url: "/mes/qc/qcqualitystd/" + id,
    method: "delete",
  });
}
